# SPDX-FileCopyrightText: 2023-2025 Sangfor Technologies Inc.
# SPDX-License-Identifier: Mulan PSL v2
# 基础镜像
FROM openjdk:8-jdk
# 修改时区为GMT+8
COPY ./deploy/Shanghai /etc/localtime
COPY ./deploy/timezone /etc/timezone
# 创建路径
RUN mkdir -p /root/aip
# 将jar包添加到容器中
COPY ./auth-login-3.1.2-SNAPSHOT.jar /root/aip
COPY ./deploy/mc /bin/mc
COPY ./deploy/add_minio_user_bucket.sh /opt/aip/add_minio_user_bucket.sh
COPY ./deploy/delete_minio_user_bucket.sh /opt/aip/delete_minio_user_bucket.sh
# 运行jar包
ENTRYPOINT ["java","-jar","/root/aip/auth-login-3.1.2-SNAPSHOT.jar"]